﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;

namespace Content_Extension
{
    public class TileMapContent
    {
        public Collection<TileSetTextureContent> Textures = new Collection<TileSetTextureContent>();
        public Collection<TileLayerContent> Layers = new Collection<TileLayerContent>();
        public Collection<ObjectLayerContent> Objects = new Collection<ObjectLayerContent>();
    }

    public class TileLayerContent
    {
        public int[,] Layout;
        public string name;
        public int width;
        public int height;
    }

    public class TileSetTextureContent
    {
        public ExternalReference<TextureContent> Texture;
        public string name;
        public int tileWidth;
        public int tileHeight;
    }

    public class ObjectLayerContent
    {
        public int width;
        public int height;
        public int x;
        public int y;
        public int gridId;
    }
}
